package org.poptest.junit;

import org.junit.runner.notification.RunNotifier;
import org.junit.runners.BlockJUnit4ClassRunner;
import org.junit.runners.model.InitializationError;

/**
 *
 * @author Alan Roche
 *         Date: 23/01/11
 *         Time: 21:55
 */
public class VerifiableRunner extends BlockJUnit4ClassRunner {
    private static boolean ran = false;
    public VerifiableRunner(Class<?> klass) throws InitializationError {
        super(klass);
    }

    @Override
    public void run(RunNotifier runNotifier) {
        ran = true;
        super.run(runNotifier);
    }

    public static boolean isRan() {
        return ran;
    }
}
